home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / layout / nsIChromeEventHandler.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  100 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIChromeEventHandler.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIChromeEventHandler_h__
  6. #define __gen_nsIChromeEventHandler_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. #include "nsEvent.h"  // for nsEventStatus enum
  18. class nsPresContext;
  19. class nsIDOMEvent; /* forward declaration */
  20.  
  21.  
  22. /* starting interface:    nsIChromeEventHandler */
  23. #define NS_ICHROMEEVENTHANDLER_IID_STR "7bc08970-9e6c-11d3-afb2-00a024ffc08c"
  24.  
  25. #define NS_ICHROMEEVENTHANDLER_IID \
  26.   {0x7bc08970, 0x9e6c, 0x11d3, \
  27.     { 0xaf, 0xb2, 0x00, 0xa0, 0x24, 0xff, 0xc0, 0x8c }}
  28.  
  29. /**
  30.  * The nsIChromeEventHandler
  31.  */
  32. class NS_NO_VTABLE nsIChromeEventHandler : public nsISupports {
  33.  public: 
  34.  
  35.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ICHROMEEVENTHANDLER_IID)
  36.  
  37.   /**
  38.     * Handle a chrome DOM event.
  39.     */
  40.   /* [noscript] void handleChromeEvent (in nsPresContext aPresContext, in nsEventPtr aEvent, out nsIDOMEvent aDOMEvent, in unsigned long aFlags, inout nsEventStatus aStatus); */
  41.   NS_IMETHOD HandleChromeEvent(nsPresContext * aPresContext, nsEvent * aEvent, nsIDOMEvent **aDOMEvent, PRUint32 aFlags, nsEventStatus *aStatus) = 0;
  42.  
  43. };
  44.  
  45. /* Use this macro when declaring classes that implement this interface. */
  46. #define NS_DECL_NSICHROMEEVENTHANDLER \
  47.   NS_IMETHOD HandleChromeEvent(nsPresContext * aPresContext, nsEvent * aEvent, nsIDOMEvent **aDOMEvent, PRUint32 aFlags, nsEventStatus *aStatus); 
  48.  
  49. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  50. #define NS_FORWARD_NSICHROMEEVENTHANDLER(_to) \
  51.   NS_IMETHOD HandleChromeEvent(nsPresContext * aPresContext, nsEvent * aEvent, nsIDOMEvent **aDOMEvent, PRUint32 aFlags, nsEventStatus *aStatus) { return _to HandleChromeEvent(aPresContext, aEvent, aDOMEvent, aFlags, aStatus); } 
  52.  
  53. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  54. #define NS_FORWARD_SAFE_NSICHROMEEVENTHANDLER(_to) \
  55.   NS_IMETHOD HandleChromeEvent(nsPresContext * aPresContext, nsEvent * aEvent, nsIDOMEvent **aDOMEvent, PRUint32 aFlags, nsEventStatus *aStatus) { return !_to ? NS_ERROR_NULL_POINTER : _to->HandleChromeEvent(aPresContext, aEvent, aDOMEvent, aFlags, aStatus); } 
  56.  
  57. #if 0
  58. /* Use the code below as a template for the implementation class for this interface. */
  59.  
  60. /* Header file */
  61. class nsChromeEventHandler : public nsIChromeEventHandler
  62. {
  63. public:
  64.   NS_DECL_ISUPPORTS
  65.   NS_DECL_NSICHROMEEVENTHANDLER
  66.  
  67.   nsChromeEventHandler();
  68.  
  69. private:
  70.   ~nsChromeEventHandler();
  71.  
  72. protected:
  73.   /* additional members */
  74. };
  75.  
  76. /* Implementation file */
  77. NS_IMPL_ISUPPORTS1(nsChromeEventHandler, nsIChromeEventHandler)
  78.  
  79. nsChromeEventHandler::nsChromeEventHandler()
  80. {
  81.   /* member initializers and constructor code */
  82. }
  83.  
  84. nsChromeEventHandler::~nsChromeEventHandler()
  85. {
  86.   /* destructor code */
  87. }
  88.  
  89. /* [noscript] void handleChromeEvent (in nsPresContext aPresContext, in nsEventPtr aEvent, out nsIDOMEvent aDOMEvent, in unsigned long aFlags, inout nsEventStatus aStatus); */
  90. NS_IMETHODIMP nsChromeEventHandler::HandleChromeEvent(nsPresContext * aPresContext, nsEvent * aEvent, nsIDOMEvent **aDOMEvent, PRUint32 aFlags, nsEventStatus *aStatus)
  91. {
  92.     return NS_ERROR_NOT_IMPLEMENTED;
  93. }
  94.  
  95. /* End of implementation class template. */
  96. #endif
  97.  
  98.  
  99. #endif /* __gen_nsIChromeEventHandler_h__ */
  100.